package cn.edu.tju.elm.service;

import cn.edu.tju.elm.model.DeliveryAddress;
import java.util.List;
import java.util.Optional;

public interface DeliveryAddressService {
    Optional<DeliveryAddress> findById(Long id);
    Optional<DeliveryAddress> findByIdAndCustomerId(Long id, Long userId);
    List<DeliveryAddress> findByCustomerId(Long userId);
    DeliveryAddress save(DeliveryAddress deliveryAddress);
    void deleteById(Long id);
}